package com.cx.service;

import com.cx.entity.ZtCustomer;
import org.springframework.core.io.InputStreamResource;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;

import java.io.IOException;
import java.util.List;

public interface ZtCustomerService {


    int deleteByPrimaryKey(Integer id);

    int insert(ZtCustomer record);

    int insertOrUpdate(ZtCustomer record);

    int insertOrUpdateSelective(ZtCustomer record);

    int insertSelective(ZtCustomer record);

    ZtCustomer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ZtCustomer record);

    int updateByPrimaryKey(ZtCustomer record);

    int updateBatch(List<ZtCustomer> list);

    int batchInsert(List<ZtCustomer> list);

    List<ZtCustomer> list(ZtCustomer ztCustomer);

    void add(ZtCustomer ztCustomer);

    //查询表格数据条数
    int count( ZtCustomer ztCustomer);

    //批量删除客户数据
    int deleteCustomer(List<Integer> ids);

    //下载客户模板
    ResponseEntity<InputStreamResource> template() throws IOException;



}





